package net.threeple.logger.data.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import net.threeple.logger.data.annotation.Changer;
import net.threeple.logger.data.annotation.Recordable;
import net.threeple.logger.data.annotation.Recorder;
import net.threeple.logger.data.model.House;
import net.threeple.logger.data.model.User;


@Service
public class UserServiceImpl {
	static final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);
	
	public void update(House house) {
		logger.debug("保存的数据{}", house);
	}
	
	@Recorder
	public void save(@Changer User user, @Recordable House house) {
		logger.debug("由用户{}保存的数据{}", user, house);
	}
	
	@Recorder
	public void saveById(@Changer User user, @Recordable House house) {
		
	}
}
